package com.miyake.loveviewweb.client.main;

import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.MenuBar;
import com.google.gwt.user.client.ui.MenuItem;
import com.google.gwt.user.client.ui.ScrollPanel;
import com.google.gwt.user.client.ui.VerticalPanel;

public class TopMainUI extends Composite {
    public TopMainUI() {
        ScrollPanel scrollPanel = new ScrollPanel();
        scrollPanel.setWidth("100%");
        scrollPanel.setHeight("100%");
        initWidget(scrollPanel);
        VerticalPanel panel = new VerticalPanel();
        panel.setWidth("100%");
        scrollPanel.add(panel);
        MenuBar menuBar = new MenuBar();
        MenuItem menuItem = new MenuItem("", new Command() {

            public void execute() {

            }
            
        });
        menuBar.addItem(menuItem);
        panel.add(menuBar);
        
        HTML title = new HTML("<h1>PHASEBOOK</h1>");
        panel.add(title);
        panel.setCellHorizontalAlignment(title, HasHorizontalAlignment.ALIGN_CENTER);
        
        panel.add(new HTML("<a href=\"/concept\">About this service</a>"));
        panel.add(new HTML("<a href=\"/develop\">For plugin developers</a>"));
    }
}
